<?
/** @file
 * @author Andrzej Mararok Wasiak (mararok@gmail.com)
 */  

final class ControllerLogger {
    private static $Instance = null;
    static function log($type, $msg, $user = -1) {
       if (CONTROLLER_LOG) {
          if (!self::$Instance)
            self::$Instance = new Logger(DBPREFIX.'controller_log');
          self::$Instance->log($type,$msg,$user);
       }
    }
}

?>